class HomeContractBean {
  String appRouteUrl;
  String title;
  List<ContractBean> list;

  HomeContractBean({this.appRouteUrl, this.title, this.list});

  HomeContractBean.fromJson(Map<String, dynamic> json) {    
    this.appRouteUrl = json['appRouteUrl'];
    this.title = json['title'];
    this.list = (json['list'] as List)!=null?(json['list'] as List).map((i) => ContractBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['appRouteUrl'] = this.appRouteUrl;
    data['title'] = this.title;
    data['list'] = this.list != null?this.list.map((i) => i.toJson()).toList():null;
    return data;
  }
}


class ContractBean {
  String title;
  List<ContractItemBean> items;

  ContractBean({this.title, this.items});

  ContractBean.fromJson(Map<String, dynamic> json) {
    this.title = json['title'];
    this.items = (json['items'] as List)!=null?(json['items'] as List).map((i) => ContractItemBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['items'] = this.items != null?this.items.map((i) => i.toJson()).toList():null;
    return data;
  }
}

class ContractItemBean {
  String stateName;
  int state;
  ContractItemBean({this.stateName, this.state});
  ContractItemBean.fromJson(Map<String, dynamic> json) {
    this.stateName = json['stateName'];
    this.state = json['state'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['stateName'] = this.stateName;
    data['state'] = this.state;
    return data;
  }
}
